﻿// <copyright file="ConnexityHardException.cs" company="Ecole Normale Supérieure">
// Released under GPLv2
// </copyright>
// <summary>Contains the ConnexityHardException class</summary>

namespace Sqwarea.GameLogic.Exceptions
{
    using System;
    using System.Runtime.Serialization;

    /// <summary>
    /// Exception thrown when something fails in connexity
    /// </summary>
    [Serializable]
    public class ConnexityHardException : Exception
    {
        /// <summary>
        /// Initializes a new instance of the ConnexityHardException class
        /// </summary>
        /// <param name="message">Exception message</param>
        public ConnexityHardException(string message)
            : base(message)
        {
        }

        /// <summary>
        /// Initializes a new instance of the ConnexityHardException class
        /// </summary>
        public ConnexityHardException()
            : base()
        {
        }

        /// <summary>
        /// Initializes a new instance of the ConnexityHardException class
        /// </summary>
        /// <param name="message">Exception message</param>
        /// <param name="ex">Parent exception</param>
        public ConnexityHardException(string message, Exception ex)
            : base(message, ex)
        {
        }

        /// <summary>
        /// Initializes a new instance of the ConnexityHardException class
        /// </summary>
        /// <param name="info">Serialization infos</param>
        /// <param name="context">Streaming context</param>
        protected ConnexityHardException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }
    }
}
